package com.tai.design.builder.demo2;

/**
 * The type Client.
 *
 * @version v1.0
 * @ClassName: Client
 * @Description: 建造者模式 链式编程
 * @Author: taylor
 */
public class Client {
    /**
     * The entry point of application.
     *
     * @param args the input arguments
     */
    public static void main(String[] args) {
        //创建手机对象   通过构建者对象获取手机对象
        Phone phone = new Phone.Builder()
                .cpu("intel")
                .screen("三星屏幕")
                .memory("金士顿内存条")
                .mainboard("华硕主板")
                .build();

        System.out.println(phone);
    }
}
